<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>创建person对象</title>
	</head>
	<body>
		<div id="exam"></div>
			
		
	</body>
	<script type="text/javascript">
		function Person(name,age,job,address){
			this.name=name;
			this.age=age;
			this.job=job;
			this.address=address;
			this.intro=function(){
        	var ss="姓名："+this.name+"<br/>"+"年龄："+this.age+"<br/>"+"职业："+this.job+"<br/>"+"住址："+this.address;
			document.getElementById("exam").innerHTML=ss;
			}
		}
		var tom=new Person("朗晓明","36","司机","北京东城区");
		tom.intro();
		
		
		
		
	</script>
</html>
